<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="/xboard/css/common.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/xboard/common/iframResize.js"></script>
<title>Xboard</title>
<script type="text/javascript">
	function fn_replay(){
		var obj = document.w_frm;
		obj.submit();
	}
</script>
</head>
<body>
<s:iterator value="vo">
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<table width="780" cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td align="center" style="padding:50px 0 15px 0; font-size:13px; font-weight:bold;">Xboard</td>
					</tr>
					<tr>
						<td align="left">
							<table width="780" cellpadding="0" cellspacing="0" style="border-collapse: collapse;" border="1" bordercolor="#878787">
								<tr>
									<td>
										<table width="100%" cellpadding="0" cellspacing="0" border="0">
										
											<tr height="25" class="r_bg">
												<td style="padding-left: 8px;" colspan="2">
													<b><s:property value="subject"/></b><br>
												</td>
											</tr>
											<tr height="25" class="r_bg">
												<td style="padding-left: 8px;" class="r_sm"><s:property value="writer"/> 
													<s:if test="%{email == '' || email == null}">
													(<span style="color:#878787; font-size: 10px;">메일 없음</span>)
													</s:if>
													<s:else>
													(<a href="mailto:<s:property value="email"/>"><s:property value="email"/></a>)
													</s:else>	
												</td>
												<td style="padding-right: 8px;" class="r_sm ri">No: <s:property value="no"/>&nbsp;&nbsp; Hit : <s:property value="viewcnt"/></td>
											</tr>
											<tr>
												<td height="1" bgcolor="#878787" colspan="2"></td>
											</tr>
											<tr>
												<td height="300" valign="top" style="padding: 8px 8px 0 8px;" colspan="2"><s:property escape="false" value="content"/></td>
											</tr>
											<tr>
												<td class="r_sm ri" style="padding: 0 8px 8px 0;" colspan="2"><s:property value="regdate"/></td>
											</tr>
										</table>
									</td>
								</tr>
								<s:if test="%{filename != null && newfilename != null}">
								<tr>
									<td height="28" align="left" style="padding-left:5px;">첨부파일 : <s:property value="filename"/> </td>
								</tr>
								</s:if>
								<tr>
									<td style="padding: 10px 5px 10px 5px;">
									<!-- 덧글  start-->
									<iframe id="comment" name="ifrmComment" width="770" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="./cmtList.action?cmt_bnum=<s:property  value="no"/>&page=1"></iframe>		
									</td><!-- 덧글  end-->
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td align="right" style="padding-bottom: 30px;">
							<table border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td style="padding-top: 10px;">
										<input type="button" class="b_style t_btn" value="목록보기" onclick="javascript:document.location.href='./list.action?page=<s:property value='page'/>'">
										<input type="button" class="b_style t_btn" value="수정하기" onclick="javascript:document.location.href='./modfiyfrom.action?no=<s:property value='no'/>&cmd=modfiy&page=<s:property value='page'/>'">
										<input type="button" class="b_style t_btn" value="삭제하기" onclick="javascript:document.location.href='./delfrom.action?no=<s:property value='no'/>&pnum=<s:property value='pnum'/>&reply=<s:property value='reply'/>&page=<s:property value='page'/>'">
										<input type="button" class="b_style t_btn" value="답글달기" onclick="fn_replay();">
									</td>
								</tr>
							</table>
						</td>		
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<form action="./writefrom.action" name="w_frm" method="post">
		<input type="hidden" name="cmd" value="replay">
		<input type="hidden" name="ref" value="<s:property value='ref'/>">
		<input type="hidden" name="step" value="<s:property value='step'/>">
		<input type="hidden" name="lev" value="<s:property value='lev'/>">
		<input type="hidden" name="pnum" value="<s:property value='no'/>">
	</form>
</s:iterator>
</body>
</html>
